package com.example.dante.a17376060_wanghaikang_finaltest.cn.example.main.cn.example.domain;

import android.content.Intent;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class News {
    private String news_title;
    private String new_image;
    private String news_kinds;
    private String news_content;
    private Integer news_id;
    private String news_txt;
    private String image_path;
    private List<News> news=new ArrayList<>();
    private Set<User> users=new HashSet<>();
    public String getNews_title() {
        return news_title;
    }

    public void setNews_title(String news_title) {
        this.news_title = news_title;
    }

    public String getNew_image() {
        return new_image;
    }

    public void setNew_image(String new_image) {
        this.new_image = new_image;
    }

    public String getNews_kinds() {
        return news_kinds;
    }

    public void setNews_kinds(String news_kinds) {
        this.news_kinds = news_kinds;
    }

    public String getNews_content() {
        return news_content;
    }

    public void setNews_content(String news_content) {
        this.news_content = news_content;
    }

    public Integer getNews_id() {
        return news_id;
    }

    public void setNews_id(Integer news_id) {
        this.news_id = news_id;
    }

    public Set<User> getUsers() {
        return users;
    }

    public void setUsers(Set<User> users) {
        this.users = users;
    }

    public String getNews_txt() {
        return news_txt;
    }

    public void setNews_txt(String news_txt) {
        this.news_txt = news_txt;
    }

    @Override
    public String toString() {
        return "News{" +
                "news_title='" + news_title + '\'' +
                ", new_image='" + new_image + '\'' +
                ", news_kinds='" + news_kinds + '\'' +
                ", news_content='" + news_content + '\'' +
                ", news_id=" + news_id +
                ", users=" + users +
                '}';
    }


    public List<News> getNews() {
        return news;
    }

    public void setNews(List<News> news) {
        this.news = news;
    }

    public String getImage_path() {
        return image_path;
    }

    public void setImage_path(String image_path) {
        this.image_path = image_path;
    }
}
